import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    component: Home
  }, {
    path: '/edge',
    name: 'Edge',
    component: () => import('../views/Edge.vue')
  },
  {
    path: '/parent',
    name: 'Parent',
    component: () => import('../views/Parent.vue')
  },
  {
    path: '/inject',
    name: 'Inject',
    component: () => import('../views/Inject.vue')
  },
  {
    path: '/attr',
    name: 'Attr',
    component: () => import('../views/Attr.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router